package niit.wei.entity;

/**
 * @Author WeiJinLong
 * @Date 2023-06-28 20:55
 * @Version 1.0
 */
public class Book {
    private Integer bookId;
    private String bookName;
    private String authorName;
    private Double price;
    private Integer categoryId;
    private String bookImg;
    private Category category;

    public Book() {
    }

    public Book(Integer bookId, String bookName, String authorName, Double price, Integer categoryId, String bookImg, Category category) {
        this.bookId = bookId;
        this.bookName = bookName;
        this.authorName = authorName;
        this.price = price;
        this.categoryId = categoryId;
        this.bookImg = bookImg;
        this.category = category;
    }

    /**
     * 获取
     * @return bookId
     */
    public Integer getBookId() {
        return bookId;
    }

    /**
     * 设置
     * @param bookId
     */
    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    /**
     * 获取
     * @return bookName
     */
    public String getBookName() {
        return bookName;
    }

    /**
     * 设置
     * @param bookName
     */
    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    /**
     * 获取
     * @return authorName
     */
    public String getAuthorName() {
        return authorName;
    }

    /**
     * 设置
     * @param authorName
     */
    public void setAuthorName(String authorName) {
        this.authorName = authorName;
    }

    /**
     * 获取
     * @return price
     */
    public Double getPrice() {
        return price;
    }

    /**
     * 设置
     * @param price
     */
    public void setPrice(Double price) {
        this.price = price;
    }

    /**
     * 获取
     * @return categoryId
     */
    public Integer getCategoryId() {
        return categoryId;
    }

    /**
     * 设置
     * @param categoryId
     */
    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    /**
     * 获取
     * @return bookImg
     */
    public String getBookImg() {
        return bookImg;
    }

    /**
     * 设置
     * @param bookImg
     */
    public void setBookImg(String bookImg) {
        this.bookImg = bookImg;
    }

    /**
     * 获取
     * @return category
     */
    public Category getCategory() {
        return category;
    }

    /**
     * 设置
     * @param category
     */
    public void setCategory(Category category) {
        this.category = category;
    }

    public String toString() {
        return "Book{bookId = " + bookId + ", bookName = " + bookName + ", authorName = " + authorName + ", price = " + price + ", categoryId = " + categoryId + ", bookImg = " + bookImg + ", category = " + category + "}";
    }
}
